package br.edu.uepb.nutes.model;

import java.text.SimpleDateFormat;
import java.util.Date;

import lombok.Data;
import br.edu.uepb.nutes.entities.Autor;
import br.edu.uepb.nutes.entities.Organizacao;
import br.edu.uepb.nutes.entities.Paciente;

@Data
public class Registro {

	private Autor autor;
	private Paciente paciente;
	private Organizacao organizacao;
	private long dataInicial;
	private long dataFinal;
	private long fuso;
	
	

	public String getDataFinal() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
		return sdf.format(new Date(dataFinal));
	}
}
